#include <geos_helper.h>
#include <iostream>
#include <memory>

//#ifndef NDEBUG
//#pragma comment(lib, "F:/Develop/Libs/geos-3.6.1/VC14/lib/Debug/libgeos.lib")
//#else
//#pragma comment(lib, "F:/Develop/Libs/geos-3.6.1/VC14/lib/release/geos.lib")
//#endif // !NDEBUG

int main(int argc, char *argv[])
{
	using geos::helper::Point3dsType;
	using std::shared_ptr;
	using std::string;

	shared_ptr<Point3dsType> points = geos::helper::read_point3d_from_file("F:/Test/points.txt");
	points = geos::helper::get_triangles_mesh_boundary(*(points.get()));
	std::cout << points->size() << std::endl;

	for (auto& pt : *points.get())
	{
		std::cout << pt[0] << "," << pt[1] <<   "," << pt[2] << std::endl;
	}
	return 0;
}
